'use strict'

import Vue from 'vue'
import Router from 'vue-router'
import Resource from 'vue-resource'
import routerMap from './router'
import app from './app'

Vue.use(Router)
const router = new Router({
	hashbang: true,
	history: false,
	saveScrollPosition: true,
	suppressTransitionError: true
})

routerMap(router)

Vue.use(Resource)

Vue.http.options.emulateJSON = true
Vue.http.options.emulateHTTP = true

router.start(app, '#app')

window.router = router
